From: cl349@firebug.cl.cam.ac.uk Date: Fri, 19 May 2006 21:00:28 +0000 (+0100) Subject: Make the latest network-bridge tweaks work in a busybox environment too. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16047^2~17 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=8a7ecff138c24e85cb3d799e2910b8f0fde64547;p=xen.git Make the latest network-bridge tweaks work in a busybox environment too. Signed-off-by: David Lively --- diff --git a/tools/examples/network-bridge b/tools/examples/network-bridge index 8c738dce05..c1cc1ccf87 100755 --- a/tools/examples/network-bridge +++ b/tools/examples/network-bridge @@ -59,7 +59,7 @@ dir=$(dirname "$0") findCommand "$@" evalVariables "$@" -vifnum=${vifnum:-$(ip route list | awk '/^default / { sub(/^(eth|xenbr)/,"",$NF); print $NF }')} +vifnum=${vifnum:-$(ip route list | awk '/^default / { print $NF }' | sed -r 's/[^0-9]+//')} bridge=${bridge:-xenbr${vifnum}} netdev=${netdev:-eth${vifnum}} antispoof=${antispoof:-no}